<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <title>宠物管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="../static/layui/css/layui.css">
    <script src="../static/layui/jquery.min.js"></script>
    <script th:src="@{/js/jquery.js}"></script>
</head>
<body>
<ul class="layui-nav layui-bg-green">
    <li class="layui-nav-item "><a href="findAll">所有宠物信息</a></li>
    <li class="layui-nav-item "><a href="index">查找</a></li>
    <li class="layui-nav-item"><a href="add.html">添加宠物</a></li>
    <li class="layui-nav-item"><a href="delByName.html">删除宠物</a></li>
    <li class="layui-nav-item"><a href="update.html">修改信息</a></li>
</ul>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>执行结果如下</legend>
</fieldset>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend th:text="${msg}"></legend>
</fieldset>
<div class="layui-form">
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>id</th>
            <th>宠物名字</th>
            <th>年龄</th>
            <th>性别</th>
            <th>毛色</th>
            <th>类型</th>
            <th>主人名字</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="message:${result}" >
            <td th:text="${message.id}"></td>
            <td th:text="${message.petName}"></td>
            <td th:text="${message.age}"></td>
            <td th:text="${message.sex}"></td>
            <td th:text="${message.color}"></td>
            <td th:text="${message.type}"></td>
            <td th:text="${message.masterName}"></td>
        </tr>

        </tbody>
    </table>
</div>
</body>
</html>